<template>
<div>
    <navslot class="navs">
      <div class="left" slot="left">
        <van-button icon="arrow-left" type="default"  round  @click="back()"></van-button>
      </div>
      <div slot="center">
        <ul class="list">
          <li>商品</li>
          <li>详情</li>
          <li>评价</li>
          <li>推荐</li>
        </ul>
      </div>
      <div slot="right">
          <van-icon name="more" size="40px" />
      </div>
    </navslot>
    <div class="shop">
    <img :src="shops.src" alt="" class="shop-img"> 
       <p>{{shops.text}}</p >
       <!-- {{this.shops}} -->
      <div class="mes clearfix">
        <div class="money fl">{{shops.price}}</div>
        <!-- <div class="look fr">相似</div> -->
      </div>
    </div>
    <Foots></Foots>
  </div>
</template>

<script>
  import navslot from '@/components/nav/navslot'
  import Foots from  "@/components/Foots/Foots"
  export default {
     data(){
           return{
                  shops:this.$route.params.item
           }
              //  this.call()
     },
    created(){
       this.call()
      
    },

    methods:{
      
      back(){
        window.history.go(-1)
      },
      call(){
          console.log(this)
      }
    },
           components:{
      navslot, 
      Foots
    },
  }
</script>

<style>
.navs{
    height: 40px;
    /* line-height: 40px; */
    background: gray;
  }
  .center .list{
    display: flex;
    justify-content: space-around;
    line-height: 40px;
  }
  .shop{
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
  }
  .shop .shop-img{
    width: 100%;
  }
  .shop p{
    /* overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis; */
  }
  .money{
    color: red;

  }
  .look{
    border: 1px solid #333;
    padding: 2px;
    border-radius: 5px;
  }
</style>
